package com.rajaev.dtu.tractor.domain.service;

import com.rajaev.dtu.tractor.app.service.ProjectTeamService;
import com.rajaev.dtu.tractor.domain.entity.ProjectTeamPo;
import com.rajaev.dtu.tractor.domain.repository.mysql.ProjectTeamDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectTeamServiceImpl implements ProjectTeamService {


    @Resource
    ProjectTeamDao projectTeamDao;

    @Override
    public void insertProjectTeam(ProjectTeamPo projectTeam) {
        projectTeamDao.insert(projectTeam);
    }

    @Override
    public void delete(Integer projectTeamId) {
        projectTeamDao.delete(projectTeamId);
    }

    @Override
    public List<ProjectTeamPo> selectProjectTeam(List<Integer> customerIds) {
        return projectTeamDao.selectByCustomerId(customerIds);
    }


    @Override
    public void update(ProjectTeamPo projectTeamPo) {
        projectTeamDao.update(projectTeamPo);
    }
}
